<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>CRM</title>
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/demo/demo.css">
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/accdentdetail.js"></script>
    <link rel="stylesheet" href="/static/css/reset.css">
    <link rel="stylesheet" href="/static/css/public.css">
</head>
<body>
<table id="accdent_datagrid"></table>

<div id="accdent_toolbar">
    <shiro:hasPermission name="accdentdetail:saveOrUpdate">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-edit'" data-cmd="edit">编辑事故详情</a>
    </shiro:hasPermission>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-ok'" data-cmd="upreport">上报审核</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-reload'" data-cmd="reload">刷新</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'" data-cmd="tail">赔偿清单</a>
    <span>关键字:</span><input class="easyui-textbox" prompt="报案人名/保单号" id="keyword">&nbsp;
    <span>受理日期:</span><input class="easyui-datebox" id="beginDate" prompt="开始时间">
    <span>～</span>
    <input class="easyui-datebox" id="endDate" prompt="截止时间">&nbsp;
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'" data-cmd="query">查询</a>

</div>

<div id="accdent_buttons">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" data-cmd="cancel">取消</a>
</div>
<div id="detail_buttons">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'" data-cmd="save_tail">保存</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" data-cmd="cancel_tail">取消</a>
</div>

<div id="accdent_dialog" align="center">
    <form method="post" id="accdent_form">
        <input type="hidden" name="id">
        <input type="hidden" name="guardNum">
        <input type="hidden" name="carnumber">
        <input type="hidden" name="telname">
        <input type="hidden" name="tel">
        <input type="hidden" name="acceptDate">
        <input type="hidden" name="happenplace">
        <table style="margin-top: 20px" align="center">
            <tr style="height:40px" >
                <td>
                    责任认定:
                </td>
                <td>
                    <input class="easyui-textbox" name="accdentduty" data-options="required:true">
                </td>
            </tr>
            <tr style="height:40px" >
                <td>
                    事故描述:
                </td>
                <td>
                    <input class="easyui-textbox" name="accdentdetail" data-options="required:true" multiline="true" style="height: 80px;">
                </td>
            </tr>

            <tr style="height:40px" >
                <td>
                    备注:
                </td>
                <td>
                    <input class="easyui-textbox" name="note" style="height: 80px;" multiline="true">
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="details"></div>
<div id="detail_dialog" align="center">
        <form method="post" id="detail_form">

            <table style="margin-top: 20px" align="center">
                <input type="hidden" name="data.id">
                <tr style="height:40px" >
                    <td>
                        收款人:
                    </td>
                    <td>
                        <input class="easyui-textbox" name="claim.client" data-options="required:true">
                    </td>
                </tr>
                <tr style="height:40px" >
                    <td>
                        卡号:
                    </td>
                    <td>
                        <input class="easyui-textbox" name="claim.cardnumber" data-options="required:true"  >
                    </td>
                </tr>

                <tr style="height:40px" >
                    <td>
                        金额:
                    </td>
                    <td>
                        <input class="easyui-textbox" name="claim.amount" data-options="required:true">
                    </td>
                </tr>
                <tr style="height:40px" >
                    <td>
                        受损程度:
                    </td>
                    <td>
                        <input class="easyui-combobox" name="claim.damagcondition"  data-options="panelHeight:'auto',
                            valueField: 'damagcondition',
                            required:true,
                            limitToList: true,
                            editable:false,
                            textField: 'value',
                            data: [{
                                damagcondition: '0',
                                value: '轻微'
                            },{
                                damagcondition: '1',
                                value: '一般'
                            },{
                                damagcondition: '2',
                                value: '严重'
                            },{
                                damagcondition: '3',
                                value: '报废'
                            }]">
                    </td>
                </tr>
                <tr style="height:40px" >
                    <td>
                        保单号:
                    </td>
                    <td>
                        <input class="easyui-textbox" name="guardNum" data-options="required:true">
                    </td>
                </tr>
            </table>
        </form>
</table>
</div>
<div id="detail_dialogs" align="center">
        <form method="post" id="detail_forms">

            <table style="margin-top: 20px" align="center">
                <input type="hidden" name="data.id">
                <tr style="height:40px" >
                    <td>
                        收款人:
                    </td>
                    <td>
                        <input class="easyui-textbox" name="claim.client" data-options="required:true">
                    </td>
                </tr>
                <tr style="height:40px" >
                    <td>
                        卡号:
                    </td>
                    <td>
                        <input class="easyui-textbox" name="claim.cardnumber" data-options="required:true"  >
                    </td>
                </tr>

                <tr style="height:40px" >
                    <td>
                        金额:
                    </td>
                    <td>
                        <input class="easyui-textbox" name="claim.amount" data-options="required:true">
                    </td>
                </tr>
                <tr style="height:40px" >
                    <td>
                        受损程度:
                    </td>
                    <td>
                        <input class="easyui-combobox" name="claim.damagcondition"  data-options="panelHeight:'auto',
                            valueField: 'damagcondition',
                            limitToList: true,
                            editable:false,
                            textField: 'value',
                            data: [{
                                damagcondition: '0',
                                value: '轻微'
                            },{
                                damagcondition: '1',
                                value: '一般'
                            },{
                                damagcondition: '2',
                                value: '严重'
                            },{
                                damagcondition: '3',
                                value: '报废'
                            }]">
                    </td>
                </tr>
                <tr style="height:40px" >
                    <td>
                        保单号:
                    </td>
                    <td>
                        <input class="easyui-textbox" name="guardNum">
                    </td>
                </tr>
            </table>
        </form>
</table>
</div>

</body>
</html>